package repository;

import model.Order;
import model.OrderStatus;

import java.util.OptionalLong;

/**
 * 订单存储接口
 */
public interface OrderRepository {
    static <T> OptionalLong findById(Long orderId) {
        return null;
    }

    Order save(Order order);
    Order findById(String orderId);
    void updateStatus(String orderId, OrderStatus status);
}